import houtaiAx from '@/utils/houtai'
// 获取所有分类信息
export const getCateList = function (queryInfo) {
  // 按照常规要求，请求体包含在params中
  return houtaiAx.get('categories', { params: queryInfo })
}

/**
 * 获取父级分类
 * @param type typeParent
 * @returns Response
 */
export const getParentCate = function (typeParent) {
  return houtaiAx.get('categories', { params: { type: typeParent } })
}
